package com.my.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.my.demo.pojo.User;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserMapper extends BaseMapper<User> {

  @Select("SELECT userId FROM usermsg where user_name= #{name}")
  Integer selectIdByName(@Param("name") String name);

}
